

<!--人员列表，人员新增选项-->
<div class="personnelIMbody" ng-controller="personnelIMcontroller">
    <div class="personnelIM">
        <div class="personnelIMtitle">
            <div>
                {{"shaixuantiaojian"|T}}</div>
            <div class="plIMcztimefw">
                <select class="" ng-model="optionCheckflag" ng-change="optionCheck(optionCheckflag)"
                    ng-init="optionCheckflag='10'">
                    <option label={{"NAME"|T}} value="1" selected="selected">姓名</option>
                    <option label={{"dengluzhanghao"|T}} value="10">{{"dengluzhanghao"|T}}</option>
                    <option label={{"Email"|T}} value="2">{{"Email"|T}}</option>
                    <option label={{"Telephone"|T}} value="3">{{"Telephone"|T}}</option>
                    <option label={{"renyuanlrshijian"|T}} value="4">{{"renyuanlrshijian"|T}}</option>
                    <option label={{"yonghuzhuangtai"|T}} value="8">{{"yonghuzhuangtai"|T}}</option>
                    <option label={{"xitongjiaose"|T}} value="9">{{"xitongjiaose" |T}}</option>
                </select>
            </div>
            <a ng-href="{{excelUrlA}}" id="userExcelA" style="display:none;"></a>
            <input type="text" placeholder="{{placeholder}}" class="plIMsucxnr" ng-model="playparams.searchText"
                ng-if="optionCheckflag == 1 || optionCheckflag == 2 || optionCheckflag == 3 || optionCheckflag ==10  || !optionCheckflag"
                ng-keyup="myKeyup($event)">
            <input id="startTime" class="plIMsucxtime" placeholder={{"kaishiriqi"|T}} onclick="wdatepicker({highLineWeekDay:true})"
                ng-focus="GetTime()" onfocus="var endTime=$dp.$('endTime');wdatepicker({onpicked:function(){endTime.focus();},maxDate:'#F{$dp.$D(\'endTime\')}'})"
                ng-if="optionCheckflag == 4" /><span ng-if="optionCheckflag == 4">-</span><input
                    ng-if="optionCheckflag == 4" class="plIMsucxtime" id="endTime" placeholder={{"jieshuriqi"|T}}
                    value="{{endTime}}" onclick="wdatepicker()" ng-focus="GetTime()" onfocus="wdatepicker({minDate:'#F{$dp.$D(\'startTime\')}'})" />
            <select class="plIMczsfdj" ng-model="playparams.searchText" ng-if="optionCheckflag == 8">
                <option value="">{{"qingxuanze"|T}}</option>
                <option label={{"zhengchang"|T}} value="0">{{"zhengchang"|T}}</option>
                <option label={{"dongjie"|T}} value="1">{{"dongjie"|T}}</option>
            </select>
            <select class="plIMczsfdj" ng-model="playparams.searchText" ng-if="optionCheckflag == 9">
                <option value="">{{"qingxuanze"|T}}</option>
                <option label={{"Student"|T}} value="99">学员</option>
                <option label={{"Teacher"|T}} value="3">教师</option>
                <option label={{"Administrators"|T}} value="2">管理员</option>
            </select>
            <div class="plIMqrsx" ng-click="AddSelect()">
                <i class="iconfont">&#xe621;</i>{{"querenshaixuan"|T}}</div>
            <div class="personnelIMtitlerzwf">
            </div>
            <div class="personnelIMtitler">
                <div class="plIMaddpersonel" btncon="btnAdd" btn-obj="btnlist">
                    <i class="iconfont">&#xe7f7;</i> <span>{{"Add"|T}}</span></div>
                <div class="plIMdelect" btncon="btnDel" btn-obj="btnlist" style="margin-right:20px;">
                    <i class="iconfont">&#xe606;</i>{{"Delete"|T}}</div>
                <div class="plIMdelect" btncon="btnUpd" btn-obj="btnlist" ng-show="false" >
                    <i class="iconfont">&#xe606;</i>{{"Edit"|T}}</div>
                <div class="plIMdelect" ng-click="clearlock()" ng-if="playparams.powerLV==1||playparams.powerLV==2" style="margin: 0;margin-right: 15px;">
                    <i class="iconfont">&#xe634;</i>{{"jiechusuoding1xiaoshi"|T}}</div>
                <a class="btn queding" target="_blank" ng-click="downloadExcel()" >导出Excel</a> 

            </div>
        </div>
        <div class="personnelIMmian">
            <div class="personnelIMmianl" style="z-index:5">
                <div class="personnelIMsxmain" style="overflow: inherit;">
                    <div class="">
                        <selectormodal ng-if="ApiData.ApiOpen" apidata="ApiData"></selectormodal>
                    </div>
                </div>
                <div class="personnelIMfhsx">
                    <header class="personnelIMfhsxheader">
					<div class="toggle blue pull-left">
		                <input class="notificationHandler check" ng-class="{checked:checkedflag}" ng-click="checkedclick()" data-type="newpost.email" type="button">
		                <div class="switch"></div>
		                <div class="track"></div>
	                 </div>
					<div>{{"fuheshaixuan"|T}}
                    <!--<i class="iconfont" ng-mouseover="showMsg(2)" ng-mouseleave="hideMsg(2)">&#xe66b;</i>-->
                    <i class="iconfont" tooltips tooltip-template='{{"fuhechaxun"|T}}<br />{{"fuhechanxunshuoming1"|T}}<br />{{"fuhechanxunshuoming2"|T}}<br />{{"fuhechanxunshuomingjuli"|T}}'>&#xe66b;</i>
                    </div>
                    
                                 
                    </header>
                    <div class="tooltip fade top in" role="tooltip" style="top: -130px; left: 0px; width: 207px;"
                        ng-show="showComplex">
                        <!--style里数据是算出来的-->
                        <div class="tooltip-arrow" style="left: 77%">
                        </div>
                        <!--style里数据是算出来的-->
                        <div class="tooltip-inner" style="text-align: left">
                            
                            <br />
                            <br />
                            
                        </div>
                    </div>
                    <section class="personnelIMfhsxsection">
						<ul>
							<li><div class="personnelIMfhsxl"><i class="iconfont">&#xe713;</i>组织架构</div>
                            
                            <div class="personnelIMfhsxr" ng-if="OrgObj.organization_Name!=''" ng-bind="OrgObj.organization_Name"></div>
                            <div class="personnelIMfhsxr" ng-if="OrgObj.organization_Name==''">未选择</div>

                            </li>
							<li><div class="personnelIMfhsxl"><i class="iconfont">&#xe64d;</i>角色</div>
                            <div class="personnelIMfhsxr" ng-if="RolesObj.roles_Name!=''" ng-bind="RolesObj.roles_Name"></div>
                            <div class="personnelIMfhsxr" ng-if="RolesObj.roles_Name==''">未选择</div>
                            </li>
							<li><div class="personnelIMfhsxl"><i class="iconfont">&#xe91b;</i>用户组</div>
                            <div class="personnelIMfhsxr" ng-if="GroupObj.userGroup_Name!=''" ng-bind="GroupObj.userGroup_Name"></div>
                            <div class="personnelIMfhsxr" ng-if="GroupObj.userGroup_Name==''">未选择</div>
                            </li>
						</ul>
					</section>
                </div>
            </div>
            <div class="personnelIMmianc" ng-app="peosonnelrylb">
                <div class="personnelIMmianlb" style=" overflow:initial; ">
                    <ul class="personnelIMul">
                        <li class="personnelIMli">
                            <div class="personnelIMlinr">
                                <div class="personnelIMcheckbox">
                                    <input type="checkbox" ng-click="checkAll()" id="checkall">
                                    <!-- 添加selected为选中样式
            <div class="liebiaocheck-box"><span class="iconfont">&#xe67a;</span></div>
            -->
                                </div>
                                <div class="personnelIMname">
                                    姓名</div>
                                <div class="personnelIMxtjs">
                                    系统角色</div>
                                <div class="personnelIMxtzt ">
                                    状态</div>
                                <div class="personnelIMxtzt ">
                                    积分</div>
                                <div class="personnelIMipone">
                                    联系方式</div>
                            </div>
                        </li>
                        <loading isloading="loadingflag" ng-if="loadingflag"></loading>
                        <!-- <div cg-busy="{promise:promise,templateUrl:'/framework/angular-busy/custom-template.html',message:'loading',backdrop:true,delay:10,minDuration:10}">     -->
                        <ul ng-class="{'personnelIMulmain':names.length >= 10 }">
                        <!--ui-grid-selection ui-grid-auto-resize -->
                            <li class="personnelIMli" ng-repeat="userinfo in names">
                                <div class="personnelIMlinr">
                                    <div class="personnelIMcheckbox">
                                        <input type="checkbox" checklist-model="user.userinfo" checklist-value="userinfo" >
                                        <!--  添加selected为选中样式
		<div class="liebiaocheck-box "><span class="iconfont">&#xe67a;</span></div>
        -->
                                        <div class="personnelIMxiugai" ng-if="btnlist.editinfo" >
                                            <i class="iconfont" title="编辑" ng-click="useredit(userinfo.user_ID,userinfo)">&#xe633;</i></div>
                                    </div>
                                    <div class="personnelIMname">
                                        <div class="personnelIMnamel">
                                            <div labelshow-directive="{{userinfo.user_ID}}">
                                                <img src="/images/avatar.png" ng-src="{{userinfo.user_Img}}" onerror="javascript:this.src='/images/avatar.png'"
                                                    width="36" height="36" /></div>
                                        </div> 
                                        <div class="personnelIMnamer">
                                            <div class="personnelIMname_name" title="查看档案">
                                                <!-- <a ng-href="{{userurl}}/studentfile/getdetailed?userid={{userinfo.user_ID}}&token={{personToken}}" target="_blank">{{userinfo.user_Name}}</a></div> -->
                                                <a href="/system/views/personnel/studentfile.html?userid={{userinfo.user_ID}}" target="_blank">{{userinfo.user_Name}}</a></div>
                                            <div class="personnelIMnameyx">
                                                {{userinfo.user_Account}}</div>
                                        </div> 
                                    </div>
                                    <!--&#xe632; 管理员 | &#xe6b5;  学员 | &#xe603; 教师-->
                                    <div class="personnelIMxtjs" ng-if="userinfo.powerLV=='2'">
                                        <i class="iconfont">&#xe632;</i>管理员</div>
                                    <div class="personnelIMxtjs" ng-if="userinfo.powerLV=='99'">
                                        <i class="iconfont">&#xe6b5;</i>学员</div>
                                    <div class="personnelIMxtjs" ng-if="userinfo.powerLV=='3'">
                                        <i class="iconfont">&#xe603;</i>教师</div>
                                    <div class="personnelIMxtzt" ng-if="userinfo.state==0">
                                        <i class="iconfont">&#xe69d;</i>正常</div>
                                    <div class="personnelIMxtzt personnelIMxtztdj" ng-if="userinfo.state==1">
                                        <i class="iconfont">&#xe69d;</i>冻结</div>
                                    <div class="personnelIMxtzt personnelIMxtztdj" ng-if="userinfo.state==6">
                                        <i class="iconfont" style="color:Orange;">&#xe69d;</i>未审核</div>
                                    <div class="personnelIMxtzt personnelIMxtztdj">
                                        <i class="iconfont">&#xe658;</i>{{userinfo.remark==undefined?'0':userinfo.remark}}</div>
                                    <div class="personnelIMipone" ng-if="userinfo.phone==null || userinfo.phone==''">
                                        暂无
                                    </div>
                                    <div class="personnelIMipone" ng-if="userinfo.phone!=null && userinfo.phone!=''"
                                        ng-bind="userinfo.phone">
                                    </div>
                                    <div class="personnelIMbz" style="width: 167px;">
                                        <div class="personnelIMbztxt" ng-if="userinfo.logText!=null" title="{{userinfo.logText}}">
                                            <i class="iconfont">&#xe608;</i><div ng-bind-html="userinfo.logText | to_face">
                                            </div>
                                        </div>
                                        <div class="personnelIMbztxtwbz" ng-if="userinfo.logText==null">
                                            <i class="iconfont">&#xe608;</i>尚未填写备注信息</div>
                                        <div class="personnelIMbztime" ng-bind="userinfo.logCreateTime">
                                            {{userinfo.logCreateTime}}</div>
                                    </div>
                                </div>
                            </li>
                        </ul>
                        <!--</div>-->
                    </ul>
                    <tm-pagination conf="paginationConf"></tm-pagination>

                </div>
                <div class="personnelIMmianr">
                    <div ng-if="personList.length > 0">
                        负责人:<i class="iconfont" ng-mouseover="showMsg(1)" ng-mouseleave="hideMsg(1)">&#xe66b;</i></div>
                    <div class="tooltip fade top in" role="tooltip" style="top: -70px; right: -26px;
                        display: block; width: 216px;" ng-show="showPerson">
                        <!--style里数据是算出来的-->
                        <div class="tooltip-arrow" style="right: 30px; left: auto;">
                        </div>
                        <!--style里数据是算出来的-->
                        <div class="tooltip-inner" style="text-align: left">
                            人员负责人的作用：<br />
                            1、有权对管辖内的组织结构进行管理<br />
                            2、有权管理对应组织结构的人员</div>
                    </div>
                    <ul class="personnelIMmianrfzr">
                        <li ng-repeat="item in personList" labelshow-directive="{{item.user_ID}}">
                            <img ng-src="{{item.user_Img}}" src="/images/avatar.png" onerror="javascript:this.src='/images/avatar.png'"></li>
                        <div class="personnelIMmianrmore" ng-show="false">
                            <i class="iconfont">&#xe61e;</i></div>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <v-modal class="vModal--default" onclose="addUserFactory.closeuser()" ng-show="addflag"
        ng-class="{'personnelout':!addflag}">
    <!-- 请计算personne的高度，用页面高度-90=此框架高度 -->
    <div class="personneladd" ng-show="addflag" ng-class="{'personnelout':!addflag}"
        ng-style="personneladdstyle">
        <div class="personneladdheader">
            <div class="personneladdheaderl">
                人员导入</div>
            <div class="personneladdheaderzwf">
            </div>
            <div class="personneladdheaderr">
                <div class="toggle blue ">
                    <input class="notificationHandler check" ng-class="{checked:sendFlag}" ng-click="AutoNotification()"
                        data-type="newpost.email" type="button">
                    <div class="switch">
                    </div>
                    <div class="track">
                    </div>
                </div>
                <div>自动通知</div>
                <i class="iconfont" ng-mouseover="showMsg(3)" ng-mouseleave="hideMsg(3)">&#xe66b;</i>
                <div class="close" ng-click="addhide()">
                    <span>+</span></div>
           
            <div class="tooltip fade bottom in" role="tooltip" style="top: 40px; right: 5px; width: 207px;" ng-show="autnotice"  >
                        <!--style里数据是算出来的-->
                        <div class="tooltip-arrow" style="left: 72%">
                        </div>
                        <!--style里数据是算出来的-->
                        <div class="tooltip-inner" style="text-align: left">
                            消息自动通知：<br />
                            1、根据系统通信优先级设置给用户发送消息通知。<br />
                            2、通信优先级中上一级的通信数量不够，系统会自动切换下一级，给用户发送消息通知。<br />                            
                        </div>
                    </div>
                </div>
        </div>
        <div class="personneladdtop">
            <div class="personneladdwxcel">
                <input type="file" name="myfile" class="tool_file" nv-file-select="" uploader="uploader"
                    ng-model="myfile" accept=".xls,.xlsx" />
                <div class="personneladdrydrimg">
                    <img src="/images/personnel/exceldr.png"></div>
                <div class="personneladdrydrname">
                    Excel导入</div>
                <div class="personneladdrydrtext">
                    请先下载《<a href="/sysresource/muban.xls" target="_blank">Excel导入模板</a>》按照标准格式导入人员</div>
            </div>
            <div class="personneladdapi" ng-click="goApi()">
                <div class="personneladdrydrimg">
                    <img src="/images/personnel/apizhtb.png"></div>
                <div class="personneladdrydrname">
                    Api账号导入</div>
                <div class="personneladdrydrtext">
                    通过对接OA,CRM,E-HR,ERP第三方系统自动同步</div>
            </div>
            <div class="personneladdsdtj" ng-click="adduser()">
                <div class="personneladdrydrimg">
                    <img src="/images/personnel/sdyqdr.png"></div>
                <div class="personneladdrydrname">
                    手动增加</div>
                <div class="personneladdrydrtext">
                    适合逐个增加少量用户手动填写信息</div>
            </div>
           <!-- <div class="personneladdyjyq"  ng-click="rhuser()">
                <div class="personneladdrydrimg">
                    <img src="/images/personnel/sdyqdr.png"></div>
                <div class="personneladdrydrname">
                    账号融合</div>
                <div class="personneladdrydrtext">
                    把其他企业的学员账号，融合到自己的企业里，学员可以自主选择在两个企业间切换</div>
            </div>-->
            <div class="personneladdyjyq" disabled="disabled">
                <div class="personneladdrydrimg">
                    <img src="/images/personnel/yxyqdr.png"></div>
                <div class="personneladdrydrname">
                    邮件邀请</div>
                <div class="personneladdrydrtext">
                    直接通过人员邮箱邀请人员个人信息自主填写补全</div>
            </div>
        </div>
        <div class="personneladdbottom">
            <!-- +150+160+190+135+70 -->
            <div class="personneladdrydrrwlb">
                <div class="personneladdrydrrwlbtitle">
                    <div class="personneladdrydrrwlbtitlebt">
                        人员导入任务列表</div>
                    <div class="personneladdrydrrwlbtitletoday" ng-class="{true: 'active' }[todayFlag]"
                        ng-click="getToday(0)">
                        今天</div>
                    <div class="personneladdrydrrwlbtitleYesterday" ng-class="{false: 'active' }[todayFlag]"
                        ng-click="getToday(1)">
                        昨天</div>
                </div>
                <div class="personneladdrydrrwlbmain">
                    <ul>
                        <li class="personneladdrydrrwlli">
                            <div class="personneladdrydrrwlbname">
                                导入名称</div>
                            <div class="personneladdrydrrwlbdrxs">
                                导入形式</div>f
                            <div class="personneladdrydrrwlbdrtime">
                                导入时间</div>
                            <div class="personneladdrydrrwlbdrjd personneladdrycg">
                                导入进度</div>
                            <div class="personneladdrydrrwlbdrczr">
                                操作人</div>
                            <div class="personneladdrydrrwlbdcrz">
                                导入日志</div>
                        </li>
                        <li class="personneladdrydrrwlli" ng-repeat="exitem in exUserList">
                            <div class="personneladdrydrrwlbname" ng-bind="exitem.log_Name">
                            </div>
                            <div class="personneladdrydrrwlbdrxs" ng-if="exitem.import_Type == '1'">
                                Excel导入</div>
                            <div class="personneladdrydrrwlbdrtime">
                                <div class="personneladdrydrrwlbdrtime_time" ng-bind="exitem.import_Time | to_time">
                                    09:30</div>
                                <div class="personneladdrydrrwlbdrtime_date" ng-bind="exitem.import_Time | to_date">
                                    2017-1-22</div>
                            </div>
                            <div class="personneladdrydrrwlbdrjd personneladdrycg">
                                <div class="personneladdrydrrwlbdrjdtext" ng-bind="shownum(exitem.import_State,exitem.import_Num)">
                                    处理中</div>
                                <div class="personneladdrydrrwlbdrjdjdt " ng-class="getclass(exitem.import_State)">
                                    <div class="progress">
                                        <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0"
                                            aria-valuemax="100" ng-style="progressStryle(exitem.import_Num)">
                                            <span class="sr-only">40% 完成</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="personneladdrydrrwlbdrczr" ng-bind="exitem.user_Name">
                                管理</div>
                            <div class="personneladdrydrrwlbdcrz">
                                <i class="iconfont">&#xe612;</i><a ng-href="{{exitem.log_Path}}" ng-if="exitem.log_Path"
                                    target="_blank">下载日志</a></div>
                        </li>
                        <li class="personneladdrydrrwlli" ng-if="false">
                            <div class="personneladdrydrrwlbname">
                                2017-0306</div>
                            <div class="personneladdrydrrwlbdrxs">
                                Excel导入</div>
                            <div class="personneladdrydrrwlbdrtime">
                                <div class="personneladdrydrrwlbdrtime_time">
                                    09:30</div>
                                <div class="personneladdrydrrwlbdrtime_date">
                                    2017-1-22</div>
                            </div>
                            <div class="personneladdrydrrwlbdrjd personneladdrycg">
                                <div class="personneladdrydrrwlbdrjdtext">
                                    失败</div>
                                <div class="personneladdrydrrwlbdrjdjdt personneladdrysb">
                                    <div class="progress">
                                        <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0"
                                            aria-valuemax="100" style="width: 40%;">
                                            <span class="sr-only">40% 完成</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="personneladdrydrrwlbdrczr">
                                管理员</div>
                            <div class="personneladdrydrrwlbdcrz">
                                <i class="iconfont">&#xe612;</i>下载</div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
</v-modal>
<!--</div>-->
